import request from '@/utils/request'
//新增溯源管理
export function traceJobAdd(data) {
    return request({
        url: '/apisecurity/traceJob/add',
        method: 'post',
        data
    })
}
//修改溯源管理
export function traceJobEdit(data) {
    return request({
        url: '/apisecurity/traceJob/update',
        method: 'post',
        data
    })
}
//查询应用名称
export function applicationNameList(query) {
    return request({
        url: '/apisecurity/traceJob/applicationNameList',
        method: 'get',
        params: query
    })
}
//查询敏感字段
export function senstiveNameList(query) {
    return request({
        url: '/apisecurity/traceJob/senstiveNameList',
        method: 'get',
        params: query
    })
}
//溯源管理状态
export function changeStatus(data) {
    return request({
        url: '/apisecurity/traceJob/changeStatus',
        method: 'post',
        data
    })
}
//溯源管理列表
export function traceJobList(query) {
    return request({
        url: '/apisecurity/traceJob/list',
        method: 'get',
        params: query
    })
}
//立即执行
export function traceJobRun(data) {
    return request({
        url: '/apisecurity/traceJob/run',
        method: 'post',
        data
    })
}
//查询敏感类型
export function senstiveTypeList(query) {
    return request({
        url: '/apisecurity/traceJob/senstiveTypeList',
        method: 'get',
        params: query
    })
}

//删除溯源管理
export function traceJobRemove(data) {
    return request({
        url: '/apisecurity/traceJob/remove',
        method: 'post',
        data
    })
}
//执行历史
export function traceReportList(query) {
    return request({
        url: '/apisecurity/traceReport/list',
        method: 'get',
        params: query
    })
}


